package com.hzyc.internetshop.mapper;

import java.util.List;

import com.hzyc.internetshop.bean.Article;
import com.hzyc.internetshop.bean.Comment;
import com.hzyc.internetshop.bean.Fankui;
import com.hzyc.internetshop.bean.Goods;
import com.hzyc.internetshop.bean.Gys;
import com.hzyc.internetshop.bean.IdList;
import com.hzyc.internetshop.bean.Lianjie;
import com.hzyc.internetshop.bean.Orders;
import com.hzyc.internetshop.bean.Page;
import com.hzyc.internetshop.bean.Question;
import com.hzyc.internetshop.bean.Types;
import com.hzyc.internetshop.bean.User;


public interface Typemapper {
	public int addtype(String type);
	public List<Types> showtype();
	public int deletetype(IdList id);
	public int addgood(Goods good);
	public int addHelp(Question q);
	public int addlj(Lianjie lj);
	public List<Goods> showgoods(Page page);
	public int getgoodnum();
	public int gethelpnum();
	public int getljnum();
	public void deletegood(String id);
	public void deletehelp(String id);
	public void updategood(Goods g);
	public void updateorder(Orders o);
	public Goods getGoodById(String id);
	public Orders getOrderById(String id);
	public Question getHelpById(String id);
	public List<Article> showarticles(Page page);
	public List<Question> showhelp(Page page);
	public void updatehelp(Question q);
	public List<Lianjie> showlj(Page page);
	public Lianjie getLjById(String id);
	public void updatelj(Lianjie lj);
	public void updatefh(String id);
	public void deletelj(String id);
	
	public Article getArticleById(String id);
	public void deletearticle(String id);
	public void deleteorder(String id);
	public List<User> selectvip(Page page);
	public int getarticlenum();
	public int getusernum();
	public List<Fankui> getFankuiById(String id);
	
	public int addgys(String type);
	public List<Gys> showgys();
	public int deletegys(IdList id);
	public List<Fankui> showFk();
	public List<Comment> getCommentById(String id);
} 
